package auth

import (
	"goProject/cfg"
	"goProject/db"

	"gitee.com/ruige_fun/util/rdb"
)

var Token = rdb.NewMapString(db.RedisToken, cfg.Config.Main.ProjectName+"_Token")            //保存当前有效token
var Role = rdb.NewMapInt64(db.RedisToken, cfg.Config.Main.ProjectName+"_Role")               //保存当前账号的权限信息
var RoleMenuCache = rdb.NewMapString(db.Redis, cfg.Config.Main.ProjectName+"_RoleMenuCache") //角色菜单列表缓存

func init() {
	_ = RoleMenuCache.ClearAll() //首次启动，先清除所有缓存
}
